const path = require('path');         //引入path模块
function resolve(dir){
  return path.join(__dirname,dir)     //path.join(__dirname)设置绝对路径
}

module.exports = {
  publicPath: "./",
  productionSourceMap: false,
  css: {
    sourceMap: false
  },
  chainWebpack: (config)=>{
    config.resolve.alias
        .set('@$', resolve('src'))
  },
  devServer: {
    proxy: {
      "/dev": {
        target: "http://47.99.71.181:8111/",
        changeOrigin: false,
        pathRewrite: {
          "^/dev": ""
        },
      },
    }
  },
}
